/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Logica.Core.MateriaPrima;

import Logica.Core.PersonaLegal.Proveedor;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 *
 * @author Luciano
 */
@Entity
public class YerbaAjena extends Yerba implements Serializable{
    
    @ManyToOne
    Proveedor unproveedor;

    public YerbaAjena() {
    }

    public YerbaAjena(Proveedor unproveedor) {
        this.unproveedor = unproveedor;
    }

    public YerbaAjena(Proveedor unproveedor, int id, double kilaje) {
        super(id, kilaje);
        this.unproveedor = unproveedor;
    }

    public Proveedor getUnproveedor() {
        return unproveedor;
    }

    public void setUnproveedor(Proveedor unproveedor) {
        this.unproveedor = unproveedor;
    }

    

}
